const express = require("express");
const path = require("path");
const bodyParser = require("body-parser");

const app = express();

app.use(bodyParser.urlencoded({ extended: false }));

app.use(express.static(path.join(__dirname,"/src/static")));
const countRoute = require(path.join(__dirname,"src/route/countRoute.js"));
const studentRoute = require(path.join(__dirname,"src/route/studentRoute.js"));

app.use("/account",countRoute);
app.use("/account",studentRoute);


app.listen(8899,"localhost",(err)=>{
  console.log("success");
})

